package com.pcbly.web.business.table;

import java.util.List;

import com.pcbly.web.bean.table.TableBean;
import com.pcbly.web.bean.table.TableChildBean;
import com.pcbly.web.business.BaseService;

public interface TableService extends BaseService<TableBean> {

	List<TableBean> getTableBeans() throws Exception;
	
	List<TableChildBean> findTableChildBeans() throws Exception;
	
	TableBean getTableBeanById(String id) throws Exception;
	
	void saveTableBean(TableBean bean) throws Exception;

	void updateTableBean(TableBean bean) throws Exception;

	void deleteTableBean(String id) throws Exception;

	void deleteTableBeansById(String id) throws Exception;

	void deleteTableBeans(List<TableBean> beans) throws Exception;

	void saveTableBeans(List<TableBean> beans) throws Exception;

	void updateTableBeans(List<TableBean> beans) throws Exception;

	List<TableBean> findTableBeansFromDatabase() throws Exception;
	
	String getTableBeanFromDataBase(String tableName)
	throws Exception;
	
	List<TableBean> findTableBeansByTableIds(String tableIds) throws Exception;
	
	boolean checkName(String name)throws Exception;

}
